<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <video id="hp-video" src=""></video>
    <script>
    //b站h5 直播播放器
       var ft = new FormData();
       ft.append('username','data');
       var arr = [1,2,3,4];
       function  dateDiff(sDate1,sDate2){   
            oDate1  =  new  Date(sDate1)
            oDate2  =  new  Date(sDate2)  
            iDays  =  parseInt(Math.abs(oDate1  -  oDate2)  /  1000  /  60  /  60  /24)    //把相差的毫秒数转换为天数  
            return  iDays  
        }
        console.log(dateDiff("2019-11-12",'2019-11-15'))
    </script>
</body>
</html>